﻿namespace WeWork.Model
{
    /// <summary>
    /// 视频号消息
    /// </summary>
    public class ChatSphFeed : MsgChatRoomBase
    {
        /*
        {
            "msgid":"5702551662099334532_1619511584_external",
            "action":"send",
            "from":"yangzhu1",
            "tolist":["wmJSb5CgAA4aWXWndJspQGpJMDbsMwMA"],
            "roomid":"",
            "msgtime":1619511584444,
            "msgtype":"sphfeed",
            "sphfeed":{
                "feed_type":4,
                "sph_name":"云游天地旅行家",
                "feed_desc":"瑞士丨盖尔默缆车，名副其实的过山车~\n\n#旅行#风景#热门"
            }
        }
        */
        /// <summary>
        /// 消息内容
        /// </summary>
        public SphFeedInfo sphfeed { set; get; }
    }

    public class SphFeedInfo
    {
        /// <summary>
        /// 视频号消息类型。2 图片、4 视频、9 直播。Uint32类型
        /// </summary>
        public int feed_type { set; get; }
        /// <summary>
        /// 视频号账号名称。String类型
        /// </summary>
        public string sph_name { set; get; }
        /// <summary>
        /// 视频号消息描述。String类型
        /// </summary>
        public string feed_desc { set; get; }
    }
}
